import os
import osconfig
from build_tools import *

pwd = PresentDir()
CPPPATH=[]
CPPDEFINES=[]

src = Split('''
src/http_application_api.c
src/http_client.c
src/http_form_data.c
oneos/http_oneos_wrapper.c
oneos/sample/http_sample_test.c
''')

CPPPATH += [pwd + '/include']

LOCAL_CCFLAGS = ''

if osconfig.CROSS_TOOL == 'keil':
    LOCAL_CCFLAGS += ' --gnu'

group = AddCodeGroup('httpclient', src, depend = ['NET_USING_HTTPCLIENT'], CPPPATH = CPPPATH, LOCAL_CCFLAGS = LOCAL_CCFLAGS, CPPDEFINES = CPPDEFINES)

Return('group')
